package com.tms.firtsp.controller;

import com.tms.firtsp.entities.Student;
import com.tms.firtsp.service.StudentService;

import lombok.extern.slf4j.Slf4j;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

@Slf4j
@RestController
public class HelloController {

    @Autowired
    StudentService studentService;
    @RequestMapping("/hello")
    public String sayHi(){

//        List<Student> students=studentService.findAll();
//        return students;

        //return "你好，这是我的第一个SpringBoot程序!!";

        log.debug("debug....");
        log.error("error");

        return "hello log";
    }
}
